﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLogic;
using BusinessObject;
using Utility;
using System.Web.Security;
using System.Resources;
namespace WebTeamplate
{
    public partial class Admin_PopupThongKeTonKho : BasePage
    {
        public string data = string.Empty;
        public string kho = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LoadData();
            }

        }

        private void LoadData()
        {
            int maKho = ConvertValueObject.ParseInt(CommonFunction.GetValueFromQueryString(this.Page, "kho"));
            int loaihh = ConvertValueObject.ParseInt(CommonFunction.GetValueFromQueryString(this.Page, "loaihh"));
            string mh = CommonFunction.GetValueFromQueryString(this.Page, "mh");
           //get Kho
            SubCategory objKho = SubCategoryUtil.Get(maKho, CommonFunction.DEFAULT_WAREHOUSE_CODE);
            if(objKho!=null)
                kho = objKho.SubCategoryName;
            try
            {
                data = Session["tonkho"].ToString();
            }
            catch
            { 
            }
        }
    }
}
